package com.myrent.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Email;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

/**
 * @author: yuansk
 * @date: 2021/2/6 / 15:55
 * @description:企业商户类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("enterprise_merchant")
public class EnterpriseMerchant {

    @TableId(type = IdType.AUTO)
    private Integer eShopId;

    /**
     * 店铺的名字
     */
    private String eShopName;

    @Pattern(regexp = "^[\\w]{8,16}$", message = "密码不合法")
    private String eShopPassword;

    private String salt;

    private String eShopBrief;

    @Email
    private String eShopEmail;
    /**商户的头像  */
    private String eShopImage;
    /**
     * 企业营业执照
     */
    private String eBusinessLicense;

    /**企业的审核状态。默认0没有审核，其他数字后面再想 */
    private int status;
    /**企业的名称  */
    private String eName;

}
